<?php

namespace Pocker\PockerBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * PkPlayerHistory
 *
 * @ORM\Table(name="pk_player_history", indexes={@ORM\Index(name="room_id", columns={"room_id"})})
 * @ORM\Entity(repositoryClass="Pocker\PockerBundle\Repository\PkPlayerHistoryRepository")
 */
class PkPlayerHistory
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="room_id", type="bigint", nullable=false)
     */
    private $roomId;

    /**
     * @var string
     *
     * @ORM\Column(name="result", type="text", nullable=false)
     */
    private $result;

    /**
     * @var integer
     *
     * @ORM\Column(name="del_flg", type="integer", nullable=false)
     */
    private $delFlg = '0';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="insert_datetime", type="datetime", nullable=false)
     */
    private $insertDatetime;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="update_datetime", type="datetime", nullable=false)
     */
    private $updateDatetime;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set roomId
     *
     * @param integer $roomId
     * @return PkPlayerHistory
     */
    public function setRoomId($roomId)
    {
        $this->roomId = $roomId;

        return $this;
    }

    /**
     * Get roomId
     *
     * @return integer 
     */
    public function getRoomId()
    {
        return $this->roomId;
    }

    /**
     * Set result
     *
     * @param string $result
     * @return PkPlayerHistory
     */
    public function setResult($result)
    {
        $this->result = $result;

        return $this;
    }

    /**
     * Get result
     *
     * @return string 
     */
    public function getResult()
    {
        return $this->result;
    }

    /**
     * Set delFlg
     *
     * @param integer $delFlg
     * @return PkPlayerHistory
     */
    public function setDelFlg($delFlg)
    {
        $this->delFlg = $delFlg;

        return $this;
    }

    /**
     * Get delFlg
     *
     * @return integer 
     */
    public function getDelFlg()
    {
        return $this->delFlg;
    }

    /**
     * Set insertDatetime
     *
     * @param \DateTime $insertDatetime
     * @return PkPlayerHistory
     */
    public function setInsertDatetime($insertDatetime)
    {
        $this->insertDatetime = $insertDatetime;

        return $this;
    }

    /**
     * Get insertDatetime
     *
     * @return \DateTime 
     */
    public function getInsertDatetime()
    {
        return $this->insertDatetime;
    }

    /**
     * Set updateDatetime
     *
     * @param \DateTime $updateDatetime
     * @return PkPlayerHistory
     */
    public function setUpdateDatetime($updateDatetime)
    {
        $this->updateDatetime = $updateDatetime;

        return $this;
    }

    /**
     * Get updateDatetime
     *
     * @return \DateTime 
     */
    public function getUpdateDatetime()
    {
        return $this->updateDatetime;
    }
}
